package lyj.springcloud.myfallbackhandler;

import com.lyj.springcloud.entities.CommonResult;

/**
 * 全局异常兜底方法
 */
public class MyFallbackHandler {

    public static  CommonResult fall_back_method1(String id,Throwable throwable) {
        return new CommonResult("200","MyFallbackHandler fall_back_method1-----全局异常兜底方法：" + throwable.getMessage() + "=== id ==" + id);
    }

    public static  CommonResult fall_back_method2(String id,Throwable throwable) {
        return new CommonResult("200","MyFallbackHandler fall_back_method2-----全局异常兜底方法：" + throwable.getMessage() + "=== id ==" + id);
    }
}
